﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

#if EASY_MOBILE
using EasyMobile;
#endif

namespace BigheadRunRun
{
    public class PremiumFeaturesManager : MonoBehaviour
    {
        public static PremiumFeaturesManager Instance { get; private set; }

        [Header("Check to enable premium features (require EasyMobile plugin)")]
        public bool enablePremiumFeatures = true;

        void Awake()
        {
            if (Instance)
            {
                Destroy(gameObject);
            }
            else
            {
                Instance = this;
                DontDestroyOnLoad(gameObject);
            }

#if EASY_MOBILE
            if(enablePremiumFeatures)
                RuntimeManager.Init();
#endif
        }
    }
}
